FROM node

COPY . /opt/algorithm_api/algorithm.web
WORKDIR /opt/algorithm_api/algorithm.web

ENV PORT 80

RUN npm config set registry https://registry.npm.taobao.org --global && \
    npm config set disturl https://npm.taobao.org/dist --global

EXPOSE 80
CMD sh /opt/algorithm_api/algorithm.web/boot.sh